/*
 * MouseBaseEvent.h
 *
 *  Created on: 2013-9-1
 *  Author: xnan
 */

#ifndef XNL_MOUSEBASEEVENT_CLASS_H_
#define XNL_MOUSEBASEEVENT_CLASS_H_

#include "Event.h"

NS_XNL_BEGIN

class MouseBaseEvent : public Event {
public:
    MouseBaseEvent( IEventDispatcher * p_target, XNint p_eventType, XNint p_x, XNint p_y, XNint p_key );
    virtual ~MouseBaseEvent();
    
    XNint getMouseX();
    XNint getMouseY();
    XNint getKey();
    
public:
    // 鼠标键值
    static const XNint MOUSE_KEY_LEFT = 1;
    static const XNint MOUSE_KEY_RIGHT = 2;
    static const XNint MOUSE_KEY_WHEEL = 3;
    
protected:
    //鼠标的屏幕位置
    XNint m_x;
    XNint m_y;
    
    XNint m_key; // 鼠标按键
};

NS_XNL_END

#endif /* XNL_MOUSEBASEEVENT_CLASS_H_ */
